<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@include file="../common.jsp"%>
<title>广告管理</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="resources/css/common.css">
<script type="text/javascript" src="resources/js/backdoor.js"></script>
</head>
<body>
	<div class="content">
		<h4>后门管理</h4>
		<hr />
		<!-- 工具栏 -->
		<div class="tools">
			<button id="btn_add" type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal_add"><i class="icon icon-plus"></i> 新增</button>
			<button id="btn_edit" type="button" class="btn btn-warning"><i class="icon icon-edit"></i> 修改</button>
			<button id="btn_del" type="button" class="btn btn-danger"><i class="icon icon-minus"></i> 删除</button>
		</div>
		<!-- 列表 -->
		<table id="tab_list" class="table table-hover table-striped mytable">
			<thead>
				<tr>
					<th style="width: 10%;"><input id="pkall" type='checkbox'class='checkbox'></th>
					<th style="width: 30%;">名称</th>
					<th style="width: 30%;">外链</th>
					<th style="width: 20%;">时间</th>
					<th style="width: 10%;">是否显示</th>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>
	</div>

	<!-- 增加 -->
	<div class="modal fade bs-example-modal-lg" id="modal_add"
		tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
		aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">新增广告信息</h4>
				</div>
				<div class="modal-body">
					<form id="form_add" class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-sm-2 control-label required">名称*</label>
							<div class="col-sm-10">
								<input type="text" name="name_add" class="form-control"
									placeholder="名称" data-toggle="tooltip" data-placement="top"
									title="请输入名称">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label required">链接*</label>
							<div class="col-sm-10">
								<input type="text" name="url_add" class="form-control"
									placeholder="链接" data-toggle="tooltip" data-placement="top"
									title="请输入链接">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label required">是否显示*</label>
							<div class="col-sm-10">
									<input type="checkbox" id="status_add" name="status_add"  checked="checked">
							</div>
						</div>
					</form>

				</div>
				<div class="modal-footer">
					<button id="btn_confirm_add" type="button" class="btn btn-primary">确定</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 修改 -->
	<div class="modal fade bs-example-modal-lg" id="modal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">修改后门信息</h4>
				</div>
				<div class="modal-body">
					<form id="form_edit" class="form-horizontal" role="form" action="ads/modify" method="post">
						<input type="hidden" name="id" id="id">
						<div class="form-group">
							<label class="col-sm-2 control-label">名称*</label>
							<div class="col-sm-10">
								<input type="text" name="name" class="form-control" id="name" 
								data-toggle="tooltip" data-placement="top" title="请输入名称">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">链接*</label>
							<div class="col-sm-10">
								<input type="text" name="url" class="form-control" id="url"
								 data-toggle="tooltip" data-placement="top" title="请输入链接">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">是否显示*</label>
							<div class="col-sm-10" >
							<input type="checkbox" id="status" name="status" >
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button id="btn_confirm_edit" type="button" class="btn btn-primary">确定</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>
</body>
</html>